export declare interface IUseLocalStorage {
    setLocalStroage: (key: string, value: any) => void,
    getLocalStorage: (key: string) => any
}

export const useLocalStorage = () => {
    return {
        setLocalStorage: (key: string, value: any): void => {
            localStorage.setItem(key, JSON.stringify(value));
        },
        getLocalStorage: (key: string): any => {
            return JSON.parse(localStorage.getItem(key))
        }
    }
}